package com.suse.jd_system_server.dao;

import com.suse.jd_system_server.entity.Hotel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

/**
 * 地图组件需要的dao
 */
@Mapper
public interface MapDao {
    //获取一个城市内所有酒店信息
    @Select("select addx,addy,hotel_name from hotel where city = #{city}")
    ArrayList<Hotel> getLocation(String city);
    //获取信息
    @Select("select * from hotel where ${str} = #{value}")
    <T>Hotel getHotelInfo(String str,T value);
}
